<?php

use Drupal\ssy_index_products\Entity\SsyIndexProducts;

function ssy_index_products_ssy_index_products_add_page() {
  $e = new SsyIndexProducts();
  module_load_include('inc', 'ssy_index_products', 'ssy_index_products.forms');
  return drupal_get_form('ssy_index_products_ssy_index_products_entity_form', $e, 'add');
}

function ssy_index_products_ssy_index_products_view_page(SsyIndexProducts $e) {
  return entity_view($e->entityType(), [$e]);
}

function ssy_index_products_ssy_index_products_edit_page(SsyIndexProducts $e) {
  module_load_include('inc', 'ssy_index_products', 'ssy_index_products.forms');
  return drupal_get_form('ssy_index_products_ssy_index_products_entity_form', $e, 'edit');
}

function ssy_index_products_ssy_index_products_delete_page(SsyIndexProducts $e) {
  module_load_include('inc', 'ssy_index_products', 'ssy_index_products.forms');
  return drupal_get_form('ssy_index_products_ssy_index_products_delete_form', $e);
}

